﻿using Orchard.Localization;
using Orchard.Security;
using Orchard.UI.Navigation;

namespace Szmyd.Infiltrator
{
    public class AdminMenu : INavigationProvider
    {
        public Localizer T { get; set; }
        public string MenuName { get { return "admin"; } }

        public void GetNavigation(NavigationBuilder builder)
        {
            builder
                .Add(T("Infiltrator"), "5", menu => menu.Action("Index", "Admin", new { area = "Szmyd.Infiltrator" }).Permission(StandardPermissions.SiteOwner)
                    .Add(T("Global"), "1.0", item => item.Action("Index", "Admin", new { area = "Szmyd.Infiltrator" }).Permission(StandardPermissions.SiteOwner).LocalNav()));
        }
    }
}
